<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_location_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_location_id" data-rule="required" data-source="car_location/index" class="form-control selectpage" name="row[car_location_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plate_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-plate_number" class="form-control" name="row[plate_number]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('车辆品牌')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_brand" data-rule="required" class="form-control" name="row[car_brand]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('车辆颜色')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_color" data-rule="required"  class="form-control" name="row[car_color]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_code" class="form-control" name="row[car_code]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_model')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_model" class="form-control" name="row[car_model]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Manufacturer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manufacturer" class="form-control" name="row[manufacturer]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Battery_type_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-battery_type_id" data-rule="required" data-source="battery_type/index" class="form-control selectpage" name="row[battery_type_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label_one')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label_one" class="form-control" name="row[label_one]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Battery_year_one')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-battery_year_one" class="form-control" name="row[battery_year_one]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_reserve')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_reserve" data-rule="required" class="form-control selectpicker" name="row[is_reserve]">
                {foreach name="isReserveList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label_two')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label_two" class="form-control" name="row[label_two]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Battery_year_two')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-battery_year_two" class="form-control" name="row[battery_year_two]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Theft_protection')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-theft_protection" class="form-control" name="row[theft_protection]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Insurance')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-insurance" class="form-control" name="row[insurance]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-car_image" class="form-control" size="50" name="row[car_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-car_image" class="btn btn-danger faupload" data-input-id="c-car_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-car_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-car_image" class="btn btn-primary fachoose" data-input-id="c-car_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-car_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-car_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qualified_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-qualified_image" class="form-control" size="50" name="row[qualified_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-qualified_image" class="btn btn-danger faupload" data-input-id="c-qualified_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-qualified_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-qualified_image" class="btn btn-primary fachoose" data-input-id="c-qualified_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-qualified_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-qualified_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
